package com.achao.backstagemanage.vo;


import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 描述：管理员对象-VO类
 *
 * @Author：yangchao
 * @CreateDate：2023/2/4 10:04
 */
public class MusicManagerVO implements Serializable {
    private static final long serialVersionUID = 7536579240647986281L;

    //管理者ID
    private int id;
    //管理者名字
    @NotNull(message = "姓名必填!")
    @Length(min = 2,max = 20, message = "姓名过短或过长!")
    private String managerName;
    //性别 0->男 1->女
    @NotNull(message = "请输入性别")
    @Range(message = "性别范围为 {min} 到 {max} 之间", min = 0, max = 1)
    private Integer gender;
    //手机号码
    @NotNull(message = "手机必填!")
    @Pattern(regexp = "^[0-9]\\d{10}",message = "请输入11位数字手机号!")//长度11，0-9
    private String phoneNo;
    //邮箱
    private String email;
    //创建时间
    @NotNull(message = "时间必填!")
    @Length(min = 8, max = 8,message = "时间长度应为yyyyMMdd格式！")
    private String createTime;
    //预留字段
    private String remark;
    //预留字段2
    private String remark2;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark2() {
        return remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    @Override
    public String toString() {
        return "MusicManagerVO{" +
                "id=" + id +
                ", managerName='" + managerName + '\'' +
                ", gender=" + gender +
                ", phoneNo='" + phoneNo + '\'' +
                ", email='" + email + '\'' +
                ", createTime='" + createTime + '\'' +
                ", remark='" + remark + '\'' +
                ", remark2='" + remark2 + '\'' +
                '}';
    }
}
